/**
 * 
 */
package com.effectiv.gooruda.mvc.controller;

import lombok.extern.slf4j.Slf4j;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author Dhrubo
 * 
 */
@Controller
@Slf4j
public class GuestController {
	
	@RequestMapping(value = "/signin")
	public final String displayLoginform(Model model,
			@RequestParam("error") String error) {
		
		log.info("################################################# here we are");
		
	    model.addAttribute("error", error);
	    return "signin";
	}
	
	@RequestMapping(value = "/home")
	public final String showHome(Model model) {
		
		return "home";
	}
}
